package com.server.mapper;

import com.server.entity.ExpenseRecord;
import com.server.example.ExpenseRecordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExpenseRecordMapper {
    long countByExample(ExpenseRecordExample example);

    int deleteByExample(ExpenseRecordExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(ExpenseRecord record);

    int insertSelective(ExpenseRecord record);

    List<ExpenseRecord> selectByExample(ExpenseRecordExample example);

    ExpenseRecord selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") ExpenseRecord record, @Param("example") ExpenseRecordExample example);

    int updateByExample(@Param("record") ExpenseRecord record, @Param("example") ExpenseRecordExample example);

    int updateByPrimaryKeySelective(ExpenseRecord record);

    int updateByPrimaryKey(ExpenseRecord record);
}